import React, {useCallback} from 'react';
import {View, StyleSheet} from 'react-native';
import Slider from './Slider';

function Index() {
  const onChange = useCallback(obj => {
    console.log(obj, 'onchange');
  }, []);
  return (
    <View style={styles.box}>
      <Slider />
      <Slider onChange={onChange} max={100} min={0} />
    </View>
  );
}

export default Index;

const styles = StyleSheet.create({
  box: {
    marginTop: 200,
    width: '100%',
    paddingHorizontal: 40,
    backgroundColor: '#eee',
  },
});
